GtkFontChooser: Cleanup comments and fix indentation alignments
authorAlberto Ruiz <aruiz@gnome.org>
Tue, 19 Jul 2011 22:43:57 +0000 (23:43 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:56 +0000 (18:57 -0400)
gtk/gtkfontchooser.c
gtk/gtkfontchooserdialog.c
gtk/gtkfontchooserdialog.h

index 65efc1d3910b7db12b67f8afcf09f22269308d08..33f6a7f5b0732c54f14ef80613962de65155fe2d 100644 (file)
@@ -1,12 +1,5 @@
 /* GTK - The GIMP Toolkit
  * Copyright (C) 2011 Alberto Ruiz <aruiz@gnome.org>
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
- *
- * Massively updated to rework the user interface by Alberto Ruiz, 2011
- * Massively updated for Pango by Owen Taylor, May 2000
- * GtkFontChooser widget for Gtk+, by Damon Chaplin, May 1998.
- * Based on the GnomeFontSelector widget, by Elliot Lee, but major changes.
- * The GnomeFontSelector was derived from app/text_tool.c in the GIMP.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -201,9 +194,9 @@ gtk_font_chooser_class_init (GtkFontChooserClass *klass)
 
 static void 
 gtk_font_chooser_set_property (GObject         *object,
-                                 guint            prop_id,
-                                 const GValue    *value,
-                                 GParamSpec      *pspec)
+                               guint            prop_id,
+                               const GValue    *value,
+                               GParamSpec      *pspec)
 {
   GtkFontChooser *fontchooser;
 
@@ -377,9 +370,9 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data)
 
 void
 set_range_marks (GtkFontChooserPrivate *priv,
-                 GtkWidgetsize_slider,
-                 gintsizes,
-                 gint length)
+                 GtkWidget             *size_slider,
+                 gint                  *sizes,
+                 gint                   length)
 {
   GtkAdjustment *adj;
   gint i;
@@ -483,7 +476,9 @@ cursor_changed_cb (GtkTreeView *treeview, gpointer data)
 }
 
 gboolean
-zoom_preview_cb (GtkWidget *scrolled_window, GdkEventScroll *event, gpointer data)
+zoom_preview_cb (GtkWidget      *scrolled_window,
+                 GdkEventScroll *event,
+                 gpointer        data)
 {
   GtkFontChooserPrivate *priv = (GtkFontChooserPrivate*)data;
 
@@ -905,9 +900,9 @@ gtk_font_chooser_ref_face (GtkFontChooser *fontchooser,
 }
 
 
-/*****************************************************************************
+/*
  * These functions are the main public interface for getting/setting the font.
- *****************************************************************************/
+ */
 
 /**
  * gtk_font_chooser_get_family:
index d0ebb3390c996b5bb34663d42b2ced4aade92f88..bd0d7ca39064c3c76f95d8ee5d6be28c58a075b5 100644 (file)
@@ -1,12 +1,5 @@
 /* GTK - The GIMP Toolkit
  * Copyright (C) 2011 Alberto Ruiz <aruiz@gnome.org>
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
- *
- * Massively updated to rework the user interface by Alberto Ruiz, 2011
- * Massively updated for Pango by Owen Taylor, May 2000
- * GtkFontChooser widget for Gtk+, by Damon Chaplin, May 1998.
- * Based on the GnomeFontSelector widget, by Elliot Lee, but major changes.
- * The GnomeFontSelector was derived from app/text_tool.c in the GIMP.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
index 7b5889399c68a15589c3538d1ad33e94328553a2..870815c3e46c52cf231d5573b001517be75018cc 100644 (file)
@@ -63,12 +63,6 @@ struct _GtkFontChooserDialogClass
   void (*_gtk_reserved4) (void);
 };
 
-/*****************************************************************************
- * GtkFontChooserDialog functions.
- *   most of these functions simply call the corresponding function in the
- *   GtkFontChooser.
- *****************************************************************************/
-
 GType       gtk_font_chooser_dialog_get_type           (void) G_GNUC_CONST;
 GtkWidget* gtk_font_chooser_dialog_new               (const gchar            *title);